<?php 
$time = time();
$sql = "update tttj.goods set dstatus=1 where dstatus=3 and saletime<$time";
exec_db($sql);
?>